<#cenluan title="相册" menu="gallery" mm="${{title:'创建相册',url:'/gallery/add'}}">
    <ul class="nav nav-tabs mb20" role="tablist">
        <!--@if(isEmpty(show)||"new"==show){-->
        <li role="presentation" class="active"><a>最新</a></li>
        <!--@}else{-->
        <li role="presentation"><a href="/gallery?show=new">最新</a></li>
        <!--@}-->
        <!--@if("pc"==show!){-->
        <li role="presentation" class="active"><a>照片最多</a></li>
        <!--@}else{-->
        <li role="presentation"><a href="/gallery?show=pc">照片最多</a></li>
        <!--@}-->
        <!--@if(!isEmpty(session.user)){-->
        <!--@if("mine"==show!){-->
        <li role="presentation" class="active"><a>我的相册</a></li>
        <!--@}else{-->
        <li role="presentation"><a href="/gallery?show=mine">我的相册</a></li>
        <!--@}-->
        <!--@}-->
        <li class="pull-right hidden-xs">
            <a href="/gallery/add">+创建相册</a>
        </li>
    </ul>
    <div class="row">
        <!--@for(gallery in page.list){-->
        <div class="col-sm-6 col-md-4 col-lg-3">
            <div class="thumbnail">
                <div class="pic-num">${gallery.photoCount}</div>
                <a href="/gallery/show/${gallery.id}">
                    <img src="${gallery.coverUrl}@!gallery-cover" alt="封面">
                </a>

                <div class="caption">
                    <h3 title="${gallery.title}">${gallery.title,xss}</h3>

                    <p>${gallery.creater.html} ${gallery.createTime,"yyyy-MM-dd"}</p>
                </div>
            </div>
        </div>
        <!--@}elsefor{-->
        <div class="container-fluid">没有记录</div>
        <!--@}-->
    </div>
    ${pageLink}
</#cenluan>
